package org.jeecgframework.web.system.pojo.vo;

public class SpecEntity implements Comparable<SpecEntity> {
    private int id;
    private String spec;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    @Override
    public int compareTo(SpecEntity o) {
        if (this.id < o.getId()) {
            return -1;
        } else if (this.id == o.getId()) {
            return 0;
        } else if (this.id > o.getId()) {
            return 1;
        }
        return 0;
    }
}
